package dfbz.文件过滤器;


import java.io.File;

public class demo01 {
    public static void main(String[] args) {
        File file = new File("E:\\东方标准\\JAVASE阶段\\JAVASE-CODE");
        printFile(file);
    }

    private static void printFile(File file) {
        File[] files = file.listFiles(pathname -> pathname.isDirectory() || pathname.isFile());
        for (File file1 : files) {
            if(file1.isDirectory()){
                System.out.println(file1);
            }else {
                System.out.println(file1);
            }
        }
    }
}
